libkovan  1
The kovan standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
types.hpp
Go to the documentation of this file.
1 #ifndef _TYPES_HPP_
2 #define _TYPES_HPP_
3 
4 template<typename T>
5 struct Vec3
6 {
7  Vec3();
8  Vec3(const T &x, const T &y, const T &z);
9 
10  T x;
11  T y;
12  T z;
13 };
14 
15 template<typename T>
17  : x(0.0f),
18  y(0.0f),
19  z(0.0f)
20 {
21 }
22 
23 
24 template<typename T>
25 Vec3<T>::Vec3(const T &x, const T &y, const T &z)
26  : x(x),
27  y(y),
28  z(z)
29 {
30 }
31 
34 typedef Vec3<int> Vec3d;
36 
37 #endif